#pragma once
#include "Brick.h"
#include "PicPlane.h"

const int ROW = 5;
const int LIST = 6;
class CWall : public FrameListener
{
public:
	CWall(void);
	~CWall(void);
	void createScene( SceneManager* sceneMgr, Vector3& vec);
	void createFrameListener( Root * root );
	void Right();
	void Left();

protected:
	bool frameStarted(const Ogre::FrameEvent& evt);
	bool frameEnded(const Ogre::FrameEvent& evt);
	void ShowPlane();
	void HidePlane();
	void CreatePlane(SceneManager* sceneMgr);
private:
	CBrick mBricks[LIST][ROW];
	CPicPlane mPlanes[LIST][ROW];
	CPicPlane mBigPlanes[4];
	AnimationState *mAnimationExpand;
	AnimationState *mAnimationShrink;
	SceneNode* mNode;

	enum{
		NONE,
		RIGHTExpand,
		RIGHTTurn,
		RIGHTShrink,
		LEFTExpand,
		LEFTTurn,
		LEFTShrink,
	} mState;

	enum APPSTATUS{
		TVDram = 1,
		TV,
		VIDEO,
		SETUP,
		APP,
	} mAPP;
};
